Arrow keys / Click to navigate

Module 2: Single to Multiple Accounts

Advanced Architecting on AWS

Organizations โ€ข Control Tower โ€ข SCPs โ€ข Resource Control Policies

๐ŸŽฏ Module Objectives

๐Ÿ—๏ธ Why Multiple Accounts?

๐Ÿ”’ Security Isolation

Blast radius containment โ€” compromise in dev doesn't affect prod

๐Ÿ’ฐ Cost Allocation

Per-account billing, chargeback to business units

๐Ÿ“ Service Limits

Each account has independent quotas โ€” avoid throttling

๐Ÿ›๏ธ Governance

Separate compliance boundaries (PCI, HIPAA, FedRAMP)

Analogy: Multiple accounts are like apartments in a building โ€” shared infrastructure (the building/Organization), but each tenant has their own locks, utilities meter, and space.

๐Ÿข AWS Organizations

Best practice: Never run workloads in the management account. It should only contain Organizations administration and billing.

๐Ÿ›ก๏ธ Service Control Policies (SCPs)

AspectSCP Behavior
TypePermissions guardrails (deny or allow lists)
Applies toAll IAM principals in member accounts (not management account)
EffectSets maximum available permissions (does NOT grant permissions)
InheritanceApplied at OU level, inherited by child OUs and accounts
Deny strategyExplicit Deny in SCP overrides any Allow in IAM policies
Key concept: SCPs are like building codes โ€” they set the boundaries of what's possible, but you still need to grant specific permissions via IAM policies. SCP Allow โˆฉ IAM Allow = Effective permissions.

๐Ÿ†• Resource Control Policies (RCPs)NEW

New in 2025: Resource Control Policies are a new policy type in Organizations. They work alongside SCPs to provide defense-in-depth. RCPs are evaluated before resource-based policies.

๐Ÿฐ AWS Control Tower

Update (2025): Control Tower LZ 4.0 introduces "Controls-Only" experience โ€” 750+ managed controls without full Control Tower deployment. Accounts auto-enroll when moved to an OU.

๐Ÿ”„ Cross-Account Access Patterns

PatternMechanismUse Case
IAM Role Assumptionsts:AssumeRole with trust policyAdmin access to member accounts
Resource-Based PolicyPrincipal ARN in resource policyCross-account S3, KMS, SNS access
AWS RAMResource Access Manager sharingShare subnets, Transit Gateways, resolvers
Organizations Trustorg-id or OU conditionsOrg-wide access to shared services
Best practice: Use aws:PrincipalOrgID condition in resource policies to restrict access to your organization, preventing external account access even if someone knows your resource ARN.

๐Ÿ’ป Demo: Organizations & SCPs

# List accounts in the organization
aws organizations list-accounts --query 'Accounts[].{Id:Id,Name:Name,Status:Status}'

# List OUs under root
aws organizations list-roots --query 'Roots[0].Id' --output text
aws organizations list-organizational-units-for-parent --parent-id r-xxxx

# List SCPs attached to an OU
aws organizations list-policies-for-target --target-id ou-xxxx --filter SERVICE_CONTROL_POLICY

# Describe a specific SCP
aws organizations describe-policy --policy-id p-xxxx

๐Ÿ—๏ธ Control Tower Landing Zone โ€” Components

Analogy: Building a Corporate Office โ€” A Landing Zone is like constructing a corporate headquarters before employees move in. You set up the building (accounts), security systems (guardrails), elevators between floors (networking), a mailroom (logging), and access cards (permissions) โ€” all standardized before anyone starts work.

๐Ÿข Management Account

Analogy: The CEO's office โ€” oversees everything but never does the actual work. Only used for billing and Organization management. Never deploy workloads here.

๐Ÿ—‚๏ธ Organizational Units (OUs)

Analogy: Floors in the building โ€” Dev floor, Prod floor, Security floor. Group accounts by purpose. Policies apply to entire floors.

๐Ÿ”’ Guardrails (Controls)

Analogy: Building safety codes โ€” fire exits must exist (mandatory), some floors can't have kitchens (preventive), and smoke detectors alert security (detective). 750+ managed controls available.

๐Ÿญ Account Factory

Analogy: A cookie cutter for new offices โ€” every new account gets the same setup: VPC, IAM roles, logging, security baseline. Consistent, repeatable, fast.

๐Ÿ“‹ Log Archive Account

Analogy: The building's CCTV control room โ€” all CloudTrail logs, Config records, and audit trails flow here. Immutable, centralized, nobody can tamper with the recordings.

๐Ÿ›ก๏ธ Audit (Security) Account

Analogy: The security guard booth โ€” cross-account read access to all accounts for security team. Security Hub, GuardDuty findings aggregate here. The watchtower.

๐ŸŒ Network Account (Shared)

Analogy: The building's utility room โ€” Transit Gateway, Direct Connect, DNS all live here. Shared via RAM. Other accounts connect but don't manage networking.

๐Ÿ“ Baseline (Config/Remediation)

Analogy: Building inspections โ€” AWS Config rules continuously check compliance. Auto-remediation fixes violations. Like having automated building inspectors that also fix issues.

๐Ÿงช Knowledge Check

Q1: An SCP with an explicit Deny on s3:DeleteBucket is attached to a Production OU. A user in a prod account has an IAM policy with Allow on s3:*. Can they delete a bucket?

A) Yes, IAM Allow overrides   B) No, SCP Deny wins   C) Depends on resource policy   D) Only in management account

B) No, SCP Deny wins โ€” An explicit Deny in an SCP always overrides any Allow in IAM policies. SCPs set the maximum permissions boundary.

Q2: What is the key difference between SCPs and Resource Control Policies (RCPs)?

A) SCPs are preventive, RCPs are detective   B) SCPs control what principals can do, RCPs control who can access resources   C) RCPs replace SCPs   D) SCPs apply to resources, RCPs apply to users

B) SCPs control what principals can do, RCPs control who can access resources โ€” SCPs are principal-centric (restrict actions). RCPs are resource-centric (restrict access to resources regardless of who's asking).

๐Ÿ“ Module 2 Summary

Organizations

Management account + OUs + member accounts. Consolidated billing. Never run workloads in mgmt account.

SCPs & RCPs

SCPs = max permissions boundary for principals. RCPs = resource access controls. Both are guardrails, not grants.

Control Tower

Automated landing zone. Account Factory. 750+ managed controls. Auto-enrollment (2025).

Cross-Account

AssumeRole, resource policies, RAM sharing. Use PrincipalOrgID conditions for org-scoped trust.

Click anywhere to close